package cn.rongdao.jrkabao.ui.loan.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.ViewGroup;

import com.mifengkong.frtools.ui.adapter.recyclerview.FRBaseRecyclerAdapter;
import com.mifengkong.frtools.ui.adapter.recyclerview.FRBaseRecyclerViewHolder;

import cn.rongdao.jrkabao.R;
import cn.rongdao.jrkabao.bean.loan.MultiPushBean;
import cn.rongdao.jrkabao.ui.loan.adapter.listener.MutliPustitemClickListener;
import cn.rongdao.jrkabao.ui.loan.adapter.viewholder.MultiPushViewHolder;

/**
 *
 */

public class MultiPushAdapter extends FRBaseRecyclerAdapter<MultiPushBean, FRBaseRecyclerViewHolder<MultiPushBean>> {

    private MutliPustitemClickListener mListener;

    public MultiPushAdapter(Context context, MutliPustitemClickListener listener) {
        super(context);
        this.mListener = listener;
    }

    @Override
    public FRBaseRecyclerViewHolder<MultiPushBean> onCreateViewHolder(ViewGroup parent, int viewType) {
        return new MultiPushViewHolder(LayoutInflater.from(getContext()).inflate(R.layout.item_multi_push, parent, false), mListener);

    }

}